<script>/* vi:set ts=4 sw=4 expandtab enc=utf8: */</script>
<!--#include("header.html")-->
<!--%import("filter/sync_result.xml")-->
<!--%import("js/admin.js")-->
<!--%import("css/message_list.css")-->

<form method="get" action="./" id="mobilemessage_fo">
    <table cellspacing="0" class="<!--@if($current_version_int > $version_115)-->rowTable<!--@else-->adminTable<!--@end-->">
    <caption>Total {number_format($total_count)}, Page {number_format($page)}/{number_format($total_page)}</caption>
    <thead>
        <tr>
            <th scope="col"><div>{$lang->no}</div></th>
            <th scope="col"><div><input type="checkbox" value="" onclick="XE.checkboxToggleAll(); return false;" /></div></th>
            <th scope="col" class="quarter_wide"><div>{$lang->regdate}</div></th>
            <th scope="col" class=""><div>{$lang->sender}</div></th>
            <th scope="col" class="quarter_wide"><div>{$lang->content}</div></th>
            <th scope="col" class=""><div>예약상태</div></th>
            <th scope="col" class=""><div>수신현황</div></th>
            <th scope="col"><div>&nbsp;</div></th>
        </tr>
    </thead>
    <tbody>
        <!--@foreach($message_list as $no => $val)-->
        <tr class="row{$cycle_idx}">
            <td>{$no}</td>
            <td><input type="checkbox" name="cart" value="{$val->gid}" /></td>
            <td>{zdate($val->regdate, "Y-m-d H:i:s")}</td>
            <td>{htmlspecialchars($val->userid)}</td>
            <td title="{htmlspecialchars($val->content)}">{htmlspecialchars($csutil->dispContent($val->content))}</td>
            <td><!--@if($val->reservflag == "Y")--><span class="reservdate">{zdate($val->reservdate, "Y-m-d H:i")} 에 예약됨</span><!--@else-->-<!--@end--></td>
            <td><a href="?module={$module}&act={$act}&gid={$val->gid}" class="receipt_status" title="<!--@if($val->cancel_count)-->취소건: {$val->cancel_count} , <!--@end--><!--@if($val->success_count)-->성공건: {$val->success_count} , <!--@end-->전체건: {$val->subcount}"><!--@if($val->cancel_count)--><span class="cancel_count">{$val->cancel_count}</span> / <!--@end--><!--@if($val->success_count)--><span class="success_count">{$val->success_count}</span> / <!--@end--><span class="subcount">{$val->subcount}</span></a></td>
            <td class="nowrap"></td>
        </tr>
        <!--@end-->
    </tbody>
    </table>

    <!-- 버튼 -->
    <div class="clear">
        <div class="fl">
            <a href="#" onclick="deleteGroupMessages(); return false;" class="button red"><span>{$lang->cmd_delete}</span></a>
            <a href="#" onclick="cancelGroupMessages(); return false;" class="button green"><span>{$lang->cmd_reserv_cancel}</span></a>
        </div>
        <div class="fr">
        </div>
    </div>

    <!-- 페이지 네비게이션 -->
    <div class="pagination a1">
        <a href="{getUrl('page','','module_srl','')}" class="prevEnd">{$lang->first_page}</a> 
        <!--@while($page_no = $page_navigation->getNextPage())-->
            <!--@if($page == $page_no)-->
                <strong>{$page_no}</strong> 
            <!--@else-->
                <a href="{getUrl('page',$page_no,'module_srl','')}">{$page_no}</a> 
            <!--@end-->
        <!--@end-->
        <a href="{getUrl('page',$page_navigation->last_page,'module_srl','')}" class="nextEnd">{$lang->last_page}</a>
    </div>
</form>
